# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=pstree
pkgver=2.40
pkgrel=1
pkgdesc="A small tool to list processes as a tree"
url="https://github.com/FredHucht/pstree"
arch="all"
license="GPL"
depends="!psmisc" # also provides pstree
subpackages="$pkgname-doc"
options="!check" # no test suite
source="$pkgname-$pkgver.tar.gz::https://github.com/FredHucht/pstree/archive/refs/tags/v$pkgver.tar.gz"

build() {
	${CC:-gcc} $CFLAGS -o $pkgname $pkgname.c
}

package() {
	install -Dm755 $pkgname \
		"$pkgdir"/usr/bin/$pkgname
	install -Dm644 $pkgname.1 \
		"$pkgdir"/usr/share/man/man1/$pkgname.1
}

sha512sums="
574e6ff5b476a5831ada91965755600ba487a13e4a4121357ee322583f61ec3a129df9dffd169e47071b15a6b57487d26d1180a5c8e8c05031eec56797e75b33  pstree-2.40.tar.gz
"
